package com.ardf.entity;

import com.alibaba.fastjson2.JSONObject;
import lombok.Data;

@Data
public class WebSocketEntity {

    private String msg;
    private Long uid;

    public WebSocketEntity( Long uid,String msg) {
        this.msg = msg;
        this.uid = uid;
    }

    @Override
    public  String toString(){
        return JSONObject.toJSONString(this);
    }
}
